package com.sk.bilibili.model.fragment.main.home;

import com.sk.api.annotations.Autowired;
import com.sk.bilibili.mapper.MemberMapper;
import com.sk.bilibili.model.BaseModel;
import com.sk.bilibili.utils.DataUtils;
import com.sk.bilibili.utils.RequestUtils;
import com.sk.bilibili.view.fragment.main.home.ShopFragment;

public class ShopModel extends BaseModel<ShopFragment> {

    @Autowired
    MemberMapper memberMapper;

    public void loadMember() {
        RequestUtils.process(memberMapper.getMember(DataUtils.getMemberId()),
                member -> view.loadMemberSuccess(member));
    }

}